/**
 * 产品接口
 */

import { request } from "../utils/request"

export const homeRecommend = () => {
    return request({
        url: "/product/homeRecommend",
        method: "GET"
    })
}
export const tagProduct = (params = {tag, pageNo: 1, pageSize: 10}) => {
    return request({
        url: "/product/tag",
        method: "GET",
        data: params
    })
}
export const productQuery = (params) => {
    return request({
        url: "/product/query",
        data: params,
        method: "GET"
    })
}
export const productQrcode = (params) => {
    return request({
        url: "/product/qrcode",
        data: params,
        method: "GET"
    })
}
export const productSeries = (params) => {
    return request({
        url: "/product/series",
        data: params,
        method: "GET"
    })
}
export const productHotRecommend = () => {
    return request({
        url: "/product/hotRecommend",
        method: "GET"
    })
}
export const ProductModuleList = () => {
    return request({
        url: "/product/module/list",
        method: "GET"
    })
}
export const productModule = (params) => {
    return request({
        url: "/product/module",
        data: params,
        method: "GET"
    })
}
export const productByTag = (params) => {
    return request({
        url: "/product/tag",
        method: 'get',
        data: params
    })
}
